package com.teama4.shop.service;

import com.teama4.shop.domain.*;
import com.teama4.shop.mapper.IndexMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class IndexServiceImpl implements IndexService {
    @Autowired
    private IndexMapper indexMapper;

    @Override
    public int findUserNumber() { return indexMapper.findUserNumber(); }

    @Override
    public int findStoreNumber() { return indexMapper.findStoreNumber(); }

    @Override
    public int findOrderNumber() { return indexMapper.findOrderNumber(); }

    @Override
    public List<User> listUser() { return indexMapper.listUser(); }

    @Override
    public List<Store> listStore() { return indexMapper.listStore(); }

    @Override
    public List<Orders> listOrder() { return indexMapper.listOrder(); }

    @Override
    public List<Store> listMessage() { return indexMapper.listMessage(); }

    @Override
    public List<Commodity> listCommodity(int id ) { return indexMapper.listCommodity(id); }

    @Override
    public List<Store> listMerchantStore(int id) { return indexMapper.listMerchantStore(id); }

    @Override
    public List<Orders> listMerchantOrders(int id) { return indexMapper.listMerchantOrders(id); }

    @Override
    public List<User> listUnverifiedUser() { return indexMapper.listUnverifiedUser(); }
}
